#include "Player.h"
#include "Enemy.h"
#include "Game.h"

void PlayerToEnemy(GameObject* A, GameObject* B)
{
	Player* p1 = dynamic_cast<Player*>(A);
	Enemy* p2 = dynamic_cast<Enemy*>(B);

	p1->StopAddingVel();
	p2->StopAddingVel();
}

static bool b = TheGame::Instance()->AddCollisionHandler("Player", "Enemy", PlayerToEnemy);